]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/button: Prefer notify_by_pspec where possible
authorBilal Elmoussaoui <belmouss@redhat.com>
Tue, 14 Apr 2026 17:49:07 +0000 (19:49 +0200)
committerBilal Elmoussaoui <belmouss@redhat.com>
Wed, 15 Apr 2026 07:37:03 +0000 (09:37 +0200)
Avoids the property by name lookup

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4176>

src/st/st-button.c

index f509cf4f330bdffd08454280b3692ae0989e915f..b1d3b913ff50c1388a3d3c6c004ad16335801aa0 100644 (file)
@@ -161,7 +161,7 @@ button_click_gesture_notify_pressed_cb (GObject    *gobject,
   else
     st_widget_remove_style_pseudo_class (widget, "active");
 
-  g_object_notify (G_OBJECT (widget), "pressed");
+  g_object_notify_by_pspec (G_OBJECT (widget), props[PROP_PRESSED]);
 }
 
 static gboolean